package com.marisfrolg.entity;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

import com.marisfrolg.util.WebServicesUtil;

public class BinActualItemInfo implements KvmSerializable{
	public String ProductNumber;
	public int Quantity;
	@Override
	public Object getProperty(int paramInt) {
		switch (paramInt) {
		case 0:
			return ProductNumber;
		case 1:
			return Quantity;
		default:
			break;
		}
		return null;
	}

	@Override
	public int getPropertyCount() {
		return 2;
	}

	@Override
	public void setProperty(int paramInt, Object paramObject) {
		switch (paramInt) {
		case 0:
			ProductNumber = paramObject.toString();
			break;
		case 1:
			Quantity = (Integer)paramObject;
			break;
		default:
			break;
		}
	}

	@SuppressWarnings("rawtypes")
	@Override
	public void getPropertyInfo(int paramInt, Hashtable paramHashtable,
			PropertyInfo paramPropertyInfo) {
		paramPropertyInfo.setNamespace(WebServicesUtil.NAMESPACE);
		switch (paramInt) {
		case 0:
			paramPropertyInfo.type = PropertyInfo.STRING_CLASS;
			paramPropertyInfo.name = "ProductNumber";
			break;
		case 1:
			paramPropertyInfo.type = PropertyInfo.INTEGER_CLASS;
			paramPropertyInfo.name = "Quantity";
			break;
		default:
			break;
		}
	}
	
}
